package com.fin.zw.intelligentbot.entity;

import com.fin.zw.intelligentbot.enums.Status;
import lombok.Data;
import org.hibernate.annotations.Table;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import java.util.Date;

@Entity
@Table(appliesTo = "company",comment = "公司信息管理")
@Data
public class Company extends BaseEntity {

    @Column(columnDefinition = "varchar(50) COMMENT '企业名称'")
    private String name;

    @Column(columnDefinition = "varchar(100) COMMENT '企业编号'")
    private String code;

    @Column(columnDefinition = "varchar(100) COMMENT '企业地址'")
    private String address;

    @Column(columnDefinition = "varchar(20) COMMENT '企业状态'")
    @Enumerated(EnumType.STRING)
    private Status status;

    @Column(columnDefinition = "varchar(20) COMMENT '联系人'")
    private String contactName;

    @Column(columnDefinition = "varchar(20) COMMENT '联系人电话'")
    private String contactPhone;

    @Column(columnDefinition = "varchar(64) COMMENT '创建人id'")
    private String createId;

    @Column(columnDefinition = "varchar(20) COMMENT '创建人姓名'")
    private String createName;

    @Column(columnDefinition = "datetime COMMENT '创建时间'")
    private Date createTime;
}
